{% extends "product/base.html" %}{% load i18n %}
{% block title %}{% trans "Order Edit title" %}{% endblock %}
 {% block content %}
<div>
	{% if user and form %}
	<form action="." method="post">
		{% if form.error_dict %}
		<p class="error">
			{% trans "Please correct the errors below. {{form.error_dict}}
		</p>
		{% endif %}
		<table>
			<tbody>
				<tr>
					<td>
						{% trans "Order product:" %}
					</td>
					<td>
						{{product.name}}
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order title:" %}
					</td>
					<td>
						{{form.title}}
					</td>
					<td>
						{% if form.title.errors %} {{form.title.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order minUserNum:" %}
					</td>
					<td>
						{{form.minUserNum}}
					</td>
					<td>
						{% if form.minUserNum.errors %} {{form.minUserNum.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order maxUserNum:" %}
					</td>
					<td>
						{{form.maxUserNum}}
					</td>
					<td>
						{% if form.maxUserNum.errors %} {{form.maxUserNum.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order minVendorNum:" %}
					</td>
					<td>
						{{form.minVendorNum}}
					</td>
					<td>
						{% if form.minVendorNum.errors %} {{form.minVendorNum.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order maxVendorNum:" %}
					</td>
					<td>
						{{form.maxVendorNum}}
					</td>
					<td>
						{% if form.maxVendorNum.errors %} {{form.maxVendorNum.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order proposalPrice:" %}
					</td>
					<td>
						{{form.proposalPrice}}
					</td>
					<td>
						{% if form.proposalPrice.errors %} {{form.proposalPrice.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "Order deadline:" %}
					</td>
					<td>
						{{form.deadline}}
					</td>
					<td>
						{% if form.deadline.errors %} {{form.deadline.errors.0}} {% endif %}
					</td>
				</tr>
			</tbody>
		</table>
		<input type="submit" value="{% trans "Order submit" %}" />
	</form>
	{% endif %}
</div>
{% endblock %}
